package com.liu.consumer.message;

import com.liu.message.MessageTypeEnum;
import com.liu.serialization.SerializationTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class PushMessage implements Serializable {

    protected Long messageID;
    protected SerializationTypeEnum serializationType;
    protected MessageTypeEnum messageType;
    protected byte[] topic;
    protected byte[] body;

    public SerializationTypeEnum getSerializationType() {
        return serializationType;
    }

    public void setSerializationType(SerializationTypeEnum serializationType) {
        this.serializationType = serializationType;
    }

    public Long getMessageID() {
        return messageID;
    }

    public void setMessageID(Long messageID) {
        this.messageID = messageID;
    }

    public MessageTypeEnum getMessageType() {
        return messageType;
    }

    public void setMessageType(MessageTypeEnum messageType) {
        this.messageType = messageType;
    }

    public byte[] getTopic() {
        return topic;
    }

    public void setTopic(byte[] topic) {
        this.topic = topic;
    }

    public byte[] getBody() {
        return body;
    }

    public void setBody(byte[] body) {
        this.body = body;
    }
}